package com.wsm.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsm.common.domain.BlackipDO;

import java.util.List;
import java.util.Map;

/**
 * 访问黑名单
 *
 * @author wangshimin
 * @email wangshiminhome@foxmail.com
 * @date 2020-02-17 17:03:32
 * @description : 访问黑名单
 */
public interface BlackipMapper extends BaseMapper<BlackipDO> {

	List<BlackipDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	int orSave(BlackipDO blackip);

	int orUpdate(BlackipDO blackip);

	int remove(Long id);

	int batchRemove(Long[] ids);
	
	int removeOrDel(Long id);

	int batchRemoveOrDel(Long[] ids);

	int updateUseFlag(Map<String, Object> map);
}
